﻿using System;
using System.Collections.Generic;
using System.Text;

namespace 继承_base
{
	//继承Person
	class Teacher:Person 
	{
		private int _salary;
		public int Salary { get => _salary; set => _salary = value; }
		public void Teach()
		{
			Console.WriteLine("老师会上课");
		}
	}
}
